Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions That Modify Movie Properties / Working With Track Time


GetTrackOffset

The GetTrackOffset function allows your application to determine the time difference between the start of a track and the start of the movie that contains the track.

pascal TimeValue GetTrackOffset (Track theTrack);
theTrack
Specifies the track for this operation. Your application obtains this track identifier from such Movie Toolbox functions as NewMovieTrack and GetMovieTrack (described on page 2-136 and page 2-188, respectively).
DESCRIPTION
The GetTrackOffset function returns a time value. This time value indicates the track's offset from the start of the movie, and it is expressed in the time scale of the movie that contains the track.

ERROR CODES
invalidTrack-2009This track is corrupted or invalid
SEE ALSO
You can set a track's offset by calling the SetTrackOffset function, which is described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996